package littlewhisker.components.ui.button {
	import flash.events.IEventDispatcher;
	import flash.events.Event;
	import flash.display.Sprite;

	/**
	 * @author Philip
	 */
	public class BasicButton extends AbstractButton {
		
		public function BasicButton( asset:Sprite, event:Event = null, eventDispatcher:IEventDispatcher = null, callback:Function = null, ...args ) : void {
			this.asset = asset;
			this.event = event;
			this.callback = callback;
			asset.mouseChildren = false;
			args ? this.callbackArguments = args : this.callbackArguments = new Array();
			eventDispatcher ? this.eventDispatcher = eventDispatcher : this.eventDispatcher = this;
		}
	}
}
